﻿using System;
using CID.Domain.Infrastructure;
using CID.Support.Exceptions;
using CID.Domain.Operations;

namespace CID.Domain.Exceptions
{
    [Serializable]
    class DuplicateParameterValueDefinitionException : DomainException
    {
        public DuplicateParameterValueDefinitionException(IParameter parameter, IEnvironment environment)
            : base(String.Format("The Value of the {0} Parameter was already defined for the {1} Environment", parameter.Name, environment.Name)) { }
        
        public DuplicateParameterValueDefinitionException(IParameter parameter)
            : base(String.Format("The default Value of the {0} Parameter was already defined", parameter.Name)) { }
    }
}
